@form-primary-color: #FF4040; // 全局主色

.editor-selection {
  margin: 1px;
  position: relative;
  background-color: #fff;
  border: 2px solid transparent;
  flex-basis: 100%;
  width: 100%;
  min-height: 32px;
  display: inline-block;

  &-label {
    position: absolute;
    left: 0;
    top: 0;
    cursor: pointer;
    background-color: @form-primary-color;
    z-index: 999;
    color: #fff;
    opacity: 0.5;
  }

  &-tools {
    position: absolute;
    right: 0;
    bottom: 0;
    cursor: pointer;
    background-color: @form-primary-color;
    z-index: 999;

    svg {
      font-size: 14px;
      color: #fff;
      margin: 0 5px;
      cursor: pointer;
    }
  }

  &-mask {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    z-index: 1;
  }

  &-close {
    font-size: 20px;
    position: absolute;
    right: 0px;
    top: 0px;
    z-index: 2;
    color: @form-primary-color;
    cursor: pointer;
  }
}

.editor-selection.editor-selection-over {
  background-color: #f5f5f5;
  // border: 1px solid @form-primary-color;
  outline: 1px solid @form-primary-color;
}

.editor-selection.editor-selection-active {
  border: 2px solid @form-primary-color;
  // outline: 2px solid @form-primary-color;
}